package com.neoCalf.neoNotify.service.impl;

import com.neoCalf.neoCommon.enums.MqType;
import com.neoCalf.neoCommon.model.RabbitMqMessage;
import com.neoCalf.neoNotify.coreService.MqSenderService;
import com.neoCalf.neoNotify.service.NotifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author 小牛
 * @version 1.0
 * @description NotifyServiceImpl
 * @date 2025/4/8 16:27
 */
@Service
public class NotifyServiceImpl implements NotifyService {
    @Autowired
    private MqSenderService mqSenderService;

    @Override
    public void sendMessage(String to, MqType type) {
        mqSenderService.sendCheckCodeWithConfirm(new RabbitMqMessage<>(type, to));
    }
}
